<%@ page import="org.springframework.beans.factory.annotation.Autowired" %>
<%@ page import="com.bc.commoncore.util.SpringBeanHelper" %>
<%@ page import="com.bc.bcapi.service.T_Menu_infoService" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title><tiles:getAsString name="title"></tiles:getAsString></title>
    <link rel="stylesheet" type="text/css" href="${staticPath}/base/css/public.css">
    <link rel="stylesheet" type="text/css" href="${staticPath}/base/css/global.css">
    <link rel="stylesheet" type="text/css" href="${staticPath}/base/css/myzh.css">
    <script type="text/javascript" src="${staticPath}/base/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="${staticPath}/base/js/progress.js"></script>
    <script type="text/javascript" src="${staticPath}/base/js/leftMenu_myzh.js"></script>
    <input type="hidden" id="domain" value="${basePath}"/>

</head>
<body>
<div class="layout_main">
    <div class='myzh_main'>
        <div class='myzh_left_menu fl'>
            <ul class='myzh_menu_ul'>
                <%
                    T_Menu_infoService t_Menu_infoService = SpringBeanHelper.getCustomBeanByType(T_Menu_infoService.class);
                    String menuStr = t_Menu_infoService.getMenuStr(request);
                %>
                <%=menuStr%>
            </ul>
            </li>

            </ul>
        </div>
        <div class="myzh_right_content fr">
            <tiles:insertAttribute name="body"></tiles:insertAttribute>
        </div>
    </div>

</div>
<script type="text/javascript">
    var current_url = location.pathname;
    current_url = current_url.substring(current_url.indexOf("t_"));
    $(function () {
        $('.myzh_menu_ul').find('[href*="' + current_url + '"]').css({"color": "red"})
        $('.myzh_menu_ul').find('[href*="' + current_url + '"]').closest('ul').css({"height": "auto"});
        $('.myzh_menu_ul').find('[href*="' + current_url + '"]').closest('ul').closest('li').addClass('active');
    })
</script>
</body>
</html>
